﻿using System;
using System.Windows;
using System.Windows.Data;

namespace MessageBoxWPF
{
    /// <summary>
    /// Interaction logic for MessageBox.xaml
    /// </summary>
    public partial class MessageBox : IClosable
    {
        public IValueConverter ImageConverter
        {
            get { return (IValueConverter)GetValue(ImageConverterProperty); }
            set { SetValue(ImageConverterProperty, value); }
        }

        // Using a DependencyProperty as the backing store for ImageConverter.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty ImageConverterProperty =
            DependencyProperty.Register("ImageConverter", typeof(IValueConverter), typeof(MessageBox), new PropertyMetadata(new Converter.SystemIconConverter()));

        public MessageBox()
        {
            InitializeComponent();
        }
        
    }
}
